<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no">
		<meta charset="utf-8">
		<title>使用循环显示10个按钮，按钮的字是0到10;</title>
	</head>
	<body>
		<script type="text/javascript">
			var i = 0;
			while (i <= 10) {
				document.write("<input type='button' value='" + i + "'>" + "<p></p>");
				i++;
			}
		</script>
	</body>
</html>
